package com.cspg.ssss.job;


import com.cspg.ssss.service.SyncOrgUserService;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.scheduling.quartz.QuartzJobBean;

//@Configuration
public class SyncUserJob extends QuartzJobBean {
    private static Logger log = LoggerFactory.getLogger(SyncUserJob.class.getName());
    @Autowired
    SyncOrgUserService syncOrgUserService;

    //@Scheduled(cron="5/5 * * * * ?")
//    @Scheduled(cron="0 0 2 * * ?")
    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("执行eLink用户信息定时任务。。。。");
//        syncOrgUserService.syncDepartmentAndUsers();
        log.info("执行eLink用户信息定时任务完毕。。。。");

    }
}
